package com.kingtop.base.model;
import java.time.LocalDateTime;

import org.kingtop.mybatis.persistence.Column;
import org.kingtop.mybatis.persistence.Id;
import org.kingtop.mybatis.persistence.Table;

/**
 * 日志表
 * @author Administrator
 * @version 1.0
 * @created 2017-12-17 22:10:58
 */
@Table(name="T_BASE_LOG")
public class BaseLog implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6746339085687536093L;

	@Id
	@Column(name="ID")
	private Long id;
	
	/**
	*	用户id
	*/
	@Column(name="USER_ID")
	private Long userId;
	
	/**
	*	日志产生时间
	*/
	@Column(name="CREATE_TIME")
	private LocalDateTime createTime;
	
	/**
	*	日志类型
	*/
	@Column(name="LOG_TYPE")
	private String logType;
	
	/**
	*	日志内容
	*/
	@Column(name="CONTENT")
	private String content;
	
	/**
	*	IP地址
	*/
	@Column(name="IP")
	private String ip;
	
	/**
	*	操作类
	*/
	@Column(name="CLASS_NAME")
	private String className;
	
	/**
	*	操作方法
	*/
	@Column(name="METHOD")
	private String method;
	
	/**
	*	用户消息
	*/
	@Column(name="USER_MESSAGE")
	private String userMessage;
	

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "BaseLog [id=" + id + ", userId=" + userId + ", createTime=" + createTime + ", logType=" + logType + ", content=" + content + ", ip=" + ip + ", className=" + className + ", method=" + method + ", userMessage=" + userMessage + "]";
	}

	public BaseLog(){
		
	}
	
	public void setId(Long id)
	{
		this.id = id;
	}
	
	public Long getId()
	{
		return this.id;
	}
	
	public void setUserId(Long userId)
	{
		this.userId = userId;
	}
	
	public Long getUserId()
	{
		return this.userId;
	}

	public void setLogType(String logType)
	{
		this.logType = logType;
	}
	
	public String getLogType()
	{
		return this.logType;
	}

	public void setContent(String content)
	{
		this.content = content;
	}
	
	public String getContent()
	{
		return this.content;
	}

	public void setIp(String ip)
	{
		this.ip = ip;
	}
	
	public String getIp()
	{
		return this.ip;
	}

	public void setClassName(String className)
	{
		this.className = className;
	}
	
	public String getClassName()
	{
		return this.className;
	}

	public void setMethod(String method)
	{
		this.method = method;
	}
	
	public String getMethod()
	{
		return this.method;
	}

	public void setUserMessage(String userMessage)
	{
		this.userMessage = userMessage;
	}
	
	public String getUserMessage()
	{
		return this.userMessage;
	}

	/**
	 * @return the createTime
	 */
	public LocalDateTime getCreateTime() {
		return createTime;
	}

	/**
	 * @param createTime the createTime to set
	 */
	public void setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
	}

}